{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}
{literal}
<script type="text/javascript">
    $(function(){
        $('.assortment').hover(function(){
            $('.assort_list').stop().fadeIn();
        },function(){
            $('.assort_list').stop().fadeOut();
        });
    });
</script>
<script type="text/javascript" src="/js/shopcart.js"></script>
<style>
    .assort_list{display: none;}
</style>
{/literal}


<div class="search_list">
    <div class="search_crumbs">
        <p class="fl">全部结果<i class="ffs">></i></p>
        {if $cate_name <> ''}
        <p class="fl crumbattr"><a href="/supply/index?cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}&order={$order}">品种：{$cate_name}<i class="close">关闭</i></a></p>
        {/if}

        {if $area_id <> ''}
        <p class="fl crumbattr"><a href="/supply/index?cate_name={$cate_name}&cates_name={$cates_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}&order={$order}">交货地：{$area_name}<i class="close">关闭</i></a></p>
        {/if}
        <p class="fl"><i class="ffs">></i></p>
        <form method="get" action="">
            <input type="hidden" class="orit" name="cate_name" value="{$cate_name}"/>
            <input type="hidden" class="orit" name="area_id" value="{$area_id}"/>
            <input type="hidden" class="orit" name="area_name" value="{$area_name}"/>
        <p class="fl crumbattr_search">
            <input type="text" placeholder="在当前条件下搜索" name="list_search" value="{$list_search}" class="crumbsearch-input"/>
            <input class="crumbsearch-btn" value="" type="submit"/>
        </p>
        </form>
        <p class="fr">共<span class="blue fwb fs16">{$totalItems}</span>条相关供应商</p>
    </div>


    <div class="nav_prop">
        {if $cate_name eq ''}
        <div class="nav_variety">
            <span class="fl">品　种</span>
            <div class="search_wrap_text">
                {if $cate<>''}
                {foreach from=$cate key=key item=item}
                <a href="/supply/index?cate_name={$item.cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}&order={$order}" title="{$item.cate_name}" cate_name="{$item.cate_name}">{$item.cate_name}</a>
                {/foreach}
                {/if}
            </div>
        </div>
        {/if}
        {if $area_id eq ''}
        <div class="nav_area">
            <span class="fl">交货地</span>
            <div class="search_wrap_text">
                <div class="search_te">
                    {if $AreaShowLIst<>''}
                    {foreach from=$AreaShowLIst key=key item=item}
                    <a href="/supply/index?cate_name={$cate_name}&cates_name={$cates_name}&area_id={$item.area_id}&area_name={$item.area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}&order={$order}" title="{$item.area_name}"  area_id="{$item.area_id}" area_name="{$item.area_name}" >{$item.area_name}</a>
                    {/foreach}
                    {/if}
                </div>
                {if $CountArea>9}
                <div class="swt_text stms1"><span>更多</span><i></i></div>
                {/if}
            </div>

        </div>
        {/if}
        <div class="search_prot">
            <form name="" action="" method="get">
            <input type="hidden" class="orit" name="area_id" value="{$area_id}"/>
            <input type="hidden" class="orit" name="area_name" value="{$area_name}"/>
            <input type="hidden" class="orit" name="cate_name" value="{$cate_name}"/>
            <input type="hidden" class="orit" name="list_search" value="{$list_search}"/>
            品种：<input type="text" class="orit" name="cate_name" value="{$cate_name}"/>
            牌号：<input type="text" class="orit" name="product_name" value="{$product_name}"/>
            厂商：<input type="text" class="orit" name="brand_name" value="{$brand_name}"/>
            公司：<input type="text" class="orit" name="business_name" value="{$business_name}"/>
            <input class="orit_btn" type="submit" value="搜 索"/>
                </form>
        </div>

    </div>


    <div class="search_text_wrap">

        <div class="search_menb">
            <div class="relsearch">
                {if $order eq ''}
                <a href="/supply/index?cate_name={$cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}" class="fsort curr">综合<i></i></a>
                {else}
                <a href="/supply/index?cate_name={$cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}" class="fsort">综合<i></i></a>
                {/if}
                {if $order eq 'visitdesc'}
                <a href="/supply/index?cate_name={$cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}" class="fsort curr">下载次数<i></i></a>
                {else}
                <a href="/supply/index?cate_name={$cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}&order=visitdesc" class="fsort">下载次数<i></i></a>
                {/if}
                <div class="place_delivery">

                    <div class="place_dtt">发布时间：<span class="pd_text">{$publish_time}</span><i class="pd_b"></i></div>

                    <div class="place_de_popup">
                        <h3 class="place_de_h3">发布时间</h3>
                        <p class="place_de_p">
                            {foreach from=$_PublishTimeCfg key=key item=item}
                            <a href="/supply/index?cate_name={$cate_name}&cates_name={$cates_name}&area_id={$area_id}&area_name={$area_name}&brand_name={$brand_name}&product_name={$product_name}&business_name={$business_name}&list_search={$list_search}&publish_time={$key}">{$item}</a>
                            {/foreach}
                        </p>
                    </div>

                </div>


                <div class="ppld_flip">
                    <!--<p class="fl"><span class="blue">1</span>/100</p>-->
                    <!--<a href="#" class="left_btn ffs lb_default"><</a>-->
                    <!--<a href="#" class="right_btn ffs">></a>-->
                    {$linkpage}
                </div>

            </div>
        </div>
    </div>





    <div class="product">

        <div class="supply_title">
            <span class="items breed">公司名称</span>
            <span class="items grade">联系人</span>
            <span class="items firm">联系方式</span>
            <span class="items price">主营品种</span>
            <span class="items number">公司所在地</span>
            <span class="items supplier">上传时间</span>
            <span class="items download">下载次数</span>
            <span class="items operate">操作</span>
        </div>

        <ul class="product_iwrap">
            {if !$data}
            <li class="tac pt10 pb10">暂无信息</li>
            {else}
            {foreach from=$data key=key item=item}
            <li class="supply_item">
                <span class="items company"><a href="#">{$item.business_name}</a></span>
                <span class="items breed">{$item.contacts}</span>
                <span class="items firm">{$item.mobile}</span>
                <span class="items grade orange">{$item.main_variety}</span>
                <span class="items price">{$item.region_name}</span>
                <span class="items number">{$item.update_time}</span>
                <span class="items supplier blue">{$item.visit}</span>
                <span class="items operate"><a href="/supply/downsupply?id={$item.id}">下载</a><a href="/supply/supplylist?id={$item.id}">预览</a></span>
            </li>
            {/foreach}
            {/if}
        </ul>
    </div>
    <div class="page tar ptb10p" id="page">{$links}</div>
</div>

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}